package com.timber.util;

import java.sql.*;

public class SystemCode extends SLDataObjectAdaptor
{
  private String	sSystem;
  private String	sDescr;

  public boolean load( ResultSet rs ) throws SQLException
  {
      sSystem = rs.getString( "System" );
      sDescr = rs.getString( "Descr" );

      return true;
  }

  public String getSystem()
  {
    return sSystem;
  }

  public void setSystem( String s )
  {
    sSystem = s;
  }

  public String getDescr()
  {
    return sDescr;
  }

  public void setDescr( String s )
  {
    sDescr = s;
  }

  public Object hashKey()
  {
    return sSystem.toString();
  }

  public String toString()
  {
    return sSystem + " (" + sDescr + ") ";
  }
}
